<?php
/* @var $this Controller */
$this->beginContent('jii.vendors.bootstrap.views.layouts.main');
$this->widget('bootstrap.widgets.TbNavbar',array(
	'items'=>array(
		array(
			'class'=>'bootstrap.widgets.TbMenu',
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/site/index')),
				array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
				array('label'=>'Contact', 'url'=>array('/site/contact')),
				array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		),
	),
));
?>

<section id="content">

	<header>
	  <div class="container">

<?php if(isset($this->breadcrumbs)) {
	$this->widget('bootstrap.widgets.TbBreadcrumbs', array(
		'links'=>$this->breadcrumbs,
	));
}?>

<?php $this->beginWidget('bootstrap.widgets.TbHeroUnit',array(
	'heading'=>'Welcome to '.CHtml::encode(Yii::app()->name),
)); ?>
<p>Congratulations! You have successfully created your Yii application.</p>
<?php $this->endWidget(); ?>

	  </div>
	  
	</header><!-- header -->
	
	<div class="container">
				
		<?php echo $content; ?>
		
	</div>
	
	<footer>
		<div class="container">
			<div class="row-fluid">
				<div class="span6"></div>
				<div class="span6 text-right">
					Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
					All Rights Reserved.<br/>
					<?php echo Yii::powered(); ?>
				</div>
			</div>
		</div>
	</footer><!-- footer -->

</section><!-- section -->

<?php $this->endContent(); ?>
